package com.liveneo.adapter.mobile.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.liveneo.adapter.base.entity.PrpmLossAccessory;
import com.liveneo.adapter.base.mapper.PrpmLossAccessoryMapper;
import com.liveneo.adapter.mobile.service.LossAccessoryService;

/**
 *@Title:辅料信息实现类
 *@Description:
 *@Author:zhoupan
 *@Since:2015-8-14 下午04:01:57
 *@Version:1.0.0
 *@Copyright (c) 北京朗泰恒盛信息技术有限公司-版权所有
 */
@Service
public class LossAccessoryServiceImpl implements LossAccessoryService {
    @Autowired
    private PrpmLossAccessoryMapper prpmLossAccessoryMapper;

    @Override
    public List<PrpmLossAccessory> getLossAccessoryList(String lossUuid) throws Exception {
        // TODO Auto-generated method stub
        return prpmLossAccessoryMapper.selectByLossUuid(lossUuid);
    }

    @Override
    public int deleteLossAccessory(String lossUuid) throws Exception {
        // TODO Auto-generated method stub
        return prpmLossAccessoryMapper.deleteByLossUuid(lossUuid);
    }

    @Override
    public int saveLossAccessory(List<PrpmLossAccessory> record) throws Exception {
        // TODO Auto-generated method stub
        return prpmLossAccessoryMapper.insertMoreRows(record);
    }
}
